/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author SHABRINA
 */
public class VariansStatistik extends UkuranPenyebaran{
    
        public static double hitung(Data data){
        VariansStatistik.data=data;
        ukuran = 0;
        for (int i=0; i<data.getSize(); i++) {
              ukuran = ukuran + (Math.pow((data.getData(i) - MeanStatistik.hitung(data)),2));
          }
        double varians = ukuran/(data.getSize()-1);
        return ukuran;
    }
}
